function []=makeirisdata()


data = load('irisdataorg.mat');
N    = size(data.data.species,1);
 
for n=1:N
 if(strcmp(data.data.species{n},'setosa')==1)   
  irisdata.Y(n,1)=1;
 elseif (strcmp(data.data.species{n},'versicolor')==1)
  irisdata.Y(n,1)=2;
 else
  irisdata.Y(n,1)=3;   
 end    
end    

irisdata.X=data.data.meas;



% figure(1)
% gscatter(iondata.X(:,1),iondata.X(:,2),iondata.Y);
save('irisdata.mat','-struct','irisdata');
